package org.zjz.basket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjz
 * @since 05/08/2022 - 01:21 下午
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("player")
public class PlayerEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学号
     */
    @TableId(value = "st_id", type = IdType.ASSIGN_ID)
    private String stId;

    /**
     * 球队编号
     */
    @TableField("t_id")
    private String tId;

    /**
     * 球员名称
     */
    @TableField("p_name")
    private String pName;

    /**
     * 球衣号
     */
    @TableField("p_number")
    private Integer pNumber;

    /**
     * 是否购买保险
     */
    @TableField("is_insurance")
    private Boolean insurance;


    public static final String ST_ID = "st_id";

    public static final String T_ID = "t_id";

    public static final String P_NAME = "p_name";

    public static final String P_NUMBER = "p_number";

    public static final String IS_INSURANCE = "is_insurance";

}
